{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/PayConfig/wechat')}">微信支付配置</a></li>
            <li class=""><a href="{:url('admin/PayConfig/alipay')}">支付宝支付配置</a></li>
            <li class="layui-this">网银支付配置</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/PayConfig/save')}" method="post">
                    <input type="hidden" name="type" value="3">
                    <div class="layui-form-item">
                        <label class="layui-form-label">token</label>
                        <div class="layui-input-block">
                            <input type="text" name="token" value="{$pay_config.token}" required  lay-verify="required" placeholder="填写设定的key" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">appid</label>
                        <div class="layui-input-block">
                            <input type="text" name="appid" value="{$pay_config.appid}" placeholder="填写高级调用功能的app id, 请在微信开发模式后台查询" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">appsecret</label>
                        <div class="layui-input-block">
                            <input type="text" name="appsecret" value="{$pay_config.appsecret}" placeholder="填写高级调用功能的密钥" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">encodingaeskey</label>
                        <div class="layui-input-block">
                            <input type="text" name="encodingaeskey" value="{$pay_config.encodingaeskey}" placeholder="填写加密用的EncodingAESKey（接口传输选择加密时必需）" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">mch_id</label>
                        <div class="layui-input-block">
                            <input type="text" name="mch_id" value="{$pay_config.mch_id}" placeholder="商户ID" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">partnerkey</label>
                        <div class="layui-input-block">
                            <input type="text" name="partnerkey" value="{$pay_config.partnerkey}" placeholder="密钥" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">ssl_cer</label>
                        <div class="layui-input-block">
                            <input type="text" name="ssl_cer" value="{$pay_config.ssl_cer}" placeholder="双向证书（操作退款或打款时必需）" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">ssl_key</label>
                        <div class="layui-input-block">
                            <input type="text" name="ssl_key" value="{$pay_config.ssl_key}" placeholder="双向证书（操作退款或打款时必需）" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}